"""
06-字典-遍历

    (1) 遍历key
        for key in 字典序列.keys()
            print(key)

    (2) 遍历value
        for value in 字典序列.values()
            print(value)

    (3) 遍历键值对
        for item in 字典序列.items()
            print(item)
"""

dict1 = {'name':'张三','age':18,'sex':'男'}

#遍历key
for key in dict1.keys():
    print(key)

print('#'*40)
#遍历value
for value in dict1.values():
    print(value)

print('#'*40)
#遍历键值对
for item in dict1.items():
    print(item)